﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace Utility
{
	public static class StringEX
	{
		public static string RemoveSuffix (this string str, string suffix)
		{
			if (str != null && str.EndsWith (suffix))
			{
				return str.Substring (0, str.Length - suffix.Length);
			}
			return str;
		}


	}
}